<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateElDiscountRuleTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('el_discount_rule', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('discount_id');
            $table->string('type');    //促销标题
            $table->text('configuration')->nullable();  //促销说明
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('el_discount_rule');
    }
}
